package com.matrix.java.chap_03.example;

import java.util.Scanner;

public class Case3_06 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("输入: ");
        int num = input.nextInt();

        double result_2 = num % 2;
        double result_3 = num % 3;
        if (result_2 == 0 && result_3 == 0) {
            System.out.println("both");
        } else if (result_2 == 0 || result_3 == 0) {
            System.out.println("one");
        } else if (result_2 == 0 ^ result_3 == 0) {
            System.out.println("only one");
        }
    }
}
